$minWidth: 1280px;

$menuHeight: 40px;

$bottom_border_height: 4px;

$cIconFont: #00AAE8; // 按钮图标字体颜色

$main_color: #DEE5EB;

$cIconfont: #4188C6;

$sIconfont: 18px;

$inputHeight: 32px; //输入框高度

$cBorder: #deefea; //边框颜色

$cFont: #314159; //字体颜色

$cHoverBtn: rgba(183, 223, 232, 0.2); //自定义、时间粒度按钮悬浮颜色

$cBtnChecked: rgba(183, 223, 232, 0.4); //自定义、时间粒度按钮选中时颜色

$cFontHover: #0099CC; //鼠标悬浮字体颜色

$cBackground: #F2F2F2; //背景颜色

$cAlarmBtnHover: rgba(183, 223, 232, 0.2); //预警/告警按钮悬浮颜色

$cAlarmBtnChecked: rgba(183, 223, 232, 0.4); //预警/告警按钮选中时颜色

$sMenuFont: 13px; //菜单项字体大小

$cTableBorder: #e6e6e6; //报表边框颜色

$cFilterGroup: #8899AA; //过滤按钮组主色调

$border-color: #E6E6E6; //边框颜色

$grid-operation-btn-color: #2691B1; //表格内操作按钮颜色

/* 清空padding和margin */
@mixin no-padding-margin {
  margin: 0;
  padding: 0;
}

/* 菜单高度 */
@mixin menu-height {
  height: $menuHeight;
  @include no-padding-margin;
}

/* 选中菜单样式*/
@mixin active-menu {
  color: $cFontHover;
  border-bottom: 3px solid $cFontHover;
}

* {
  font-family: Arial, Microsoft YaHei;
  @include no-padding-margin;
}

body {
  min-width: $minWidth;
  min-height: 600px;
  position: relative;
}

@font-face {
  font-family: "iconfont";
  src: url('font/iconfont.eot?t=1462282079'); /* IE9*/
  src: url('font/iconfont.eot?t=1462282079#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('font/iconfont.woff?t=1462282079') format('woff'), /* chrome, firefox */
  url('font/iconfont.ttf?t=1462282079') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
  url('font/iconfont.svg?t=1462282079#iconfont') format('svg'); /* iOS 4.1- */
}

.iconfont {
  font-family: "iconfont" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}

body, html {
  @include no-padding-margin;
  height: 100%;
}

/* 登录框*/
#login {
  background-image: url("../img/login.png");
  background-size: cover;
  width: 100%;
  height: 100%;
  position: relative;
  #login-div {
    width: 663px;
    height: 382px;
    background-image: url("../img/logindiv.png");
    background-size: cover;
  }
}

/*导航*/
.f-head {
  position: relative;
  height: $menuHeight;
  background: white;
  min-width: $minWidth;
  width: 100%;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  .f-logo {
    display: inline-block;
    padding: 0;
    margin: 0 50px 0 15px;
    font-size: 24px;
    font-weight: bold;
    color: $cFontHover;
    line-height: $menuHeight;
  }

  ul.f-menu-item {
    @include no-padding-margin;
    display: inline-block;
    position: relative;
    top: -3px;
    li {
      display: inline-block;
      height: $menuHeight + 3px;
      margin-left: 20px;
      line-height: $menuHeight + 3px;
      a {
        color: #333;
        text-decoration: none;
        padding: 0 10px;
        height: $menuHeight + 3px;
        line-height: $menuHeight + 3px;
        display: inline-block;
        font-size: 14px;
        box-sizing: border-box;
        text-align: center;
        &:hover {
          @include active-menu;
        }
        &.active {
          @include active-menu;
        }
      }
    }
  }

  .login-info {
    position: absolute;
    right: 10px;
    //right: 70px;
    height: $menuHeight;
    display: inline-flex;
    align-items: center;
    a {
      padding: 0 6px 0 5px;
      border-right: 1px solid #9e9e9e;
      cursor: pointer;
      display: inline-block;
      overflow: hidden;
      text-decoration: none;
      &.name {
        color: #333;
        cursor: default;
        width: 90px;
        text-align: right;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
      &:last-child {
        border-right: none;
      }
    }
  }

  .local {
    position: absolute;
    right: 10px;
    display: inline-flex;
    height: $menuHeight;
    align-items: center;
    .btn {
      text-decoration: none;
    }
    ul.dropdown-menu {
      min-width: 70px;
    }
  }
}

/* 修改密码窗口*/
#mdfpswd-div {
  .modal-content {
    border-radius: 0;
    top: 100px;
    left: 50px;
    width: 500px;
  }
  .title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 25px 0 10px;
    letter-spacing: 3px;
    color: #999;
  }

  table {
    margin: 5px 30px;
    tr {
      margin: 15px 10px;
      display: inline-block;
      &.errmsg {
        margin: 10px 10px 8px;
      }
      td {
        display: inline-block;
        margin: 0 10px;
        height: 30px;
        position: relative;
        .tip {
          position: absolute;
          top: -20px;
          font-size: 12px;
          color: #8899AA;
        }
        &:first-child {
          font-size: 17px;
          width: 80px;
          line-height: 30px;
          color: #8899AA;
        }
        &:last-child {
          border: 1px solid #8899AA;
          border-radius: 3px;
          width: 280px;
          padding: 2px;
          &.btns {
            border: none;
            top: -10px;
          }
          input {
            border: none;
            width: 260px;
            outline: none;
            height: 25px;
            padding-left: 10px;
          }
        }
      }
    }
  }

  .btn {
    border-radius: 2px;
    width: 120px;
    color: #fff;

  }

  .okbtn {
    background: #00AAE8;
    float: left;
    &:hover {
      background: #0495e4;
    }
  }

  .cancelbtn {
    background: #ACACAC;
    float: right;
    &:hover {
      background: #999;
    }
  }
}

/* kendoTreeList 样式*/
.k-treelist [child-item] {
  background: #f9f9f9;
  td:nth-child(2) {
    padding-left: 30px;
  }
  &:hover {
    background: #f9f9f9;
  }
}
.f-no-loading-mask.k-treelist{
  .k-status {
    display: none;
  }
}
.server-grid {
  overflow-x: auto;
  table{
    //防止过滤后cell宽度修改造成的闪
    table-layout: fixed;
  }
  tbody {
    tr {
      &.change-item {
        background-color: #feefcf;
        &:hover {
          background-color: #feefcf;
        }
      }
      .k-textbox{
        height: 24px;
      }
    }
    .k-button-icontext {
      min-width: 28px;
      margin: 0 2px 0 0;
      background: white;
      box-shadow: none;
      border-color: $border-color;
      padding: 4px 2px 2px;
      border-radius:4px;
      &.sync-btn i {
        font-weight: bold;
        font-size: 16px;
        color: $grid-operation-btn-color;
      }
      .k-icon {
        opacity: 1;
      }
      .k-edit {
        margin: 0;
        background-image: none;
        &:before {
          font-family: "iconfont" !important;
          font-style: normal;
          -webkit-font-smoothing: antialiased;
          -webkit-text-stroke-width: 0.2px;
          content: '\e60d';
          font-size: 16px;
          color: $grid-operation-btn-color;
          position: relative;
          top: 8px;
        }
      }
      .k-update {
        margin: 0;
        background-image: none;
        &:before {
          font-family: "iconfont" !important;
          font-style: normal;
          -webkit-font-smoothing: antialiased;
          -webkit-text-stroke-width: 0.2px;
          content: '\e616';
          font-size: 16px;
          color: $grid-operation-btn-color;
          position: relative;
          top: 8px;
        }
      }
      .k-cancel {
        margin: 0;
        background-image: none;
        &:before {
          font-family: "iconfont" !important;
          font-style: normal;
          -webkit-font-smoothing: antialiased;
          -webkit-text-stroke-width: 0.2px;
          content: '\e6dd';
          font-size: 19px;
          color: $grid-operation-btn-color;
          position: relative;
          top: 8px;
          right: 1px;
        }
      }
      .k-delete {
        margin: 0;
        background-image: none;
        &:before {
          font-family: "iconfont" !important;
          font-style: normal;
          -webkit-font-smoothing: antialiased;
          -webkit-text-stroke-width: 0.2px;
          content: '\e61a';
          font-size: 16px;
          color: $grid-operation-btn-color;
          position: relative;
          top: 8px;
        }
      }
      &.iconFont-delete:before {
        font-family: "iconfont" !important;
        font-style: normal;
        -webkit-font-smoothing: antialiased;
        -webkit-text-stroke-width: 0.2px;
        content: '\e61a';
        color: $grid-operation-btn-color;
      }
    }
  }
  .k-alt {
    background-color: #f9f9f9;
    &:hover {
      background-color: #f9f9f9;
    }
  }
  .badge {
    font-weight: bold;
    position: relative;
    bottom: 1px;
    &.modify-item {
      background-color: #F60;
    }
    &.new-item {
      background-color: #009;
    }
  }
  .k-grid-edit-row .k-tooltip {
    max-width: 140px;
    z-index: 10;
  }
}

/**表格中checkbox样式修改**/

.k-checkbox:checked + .k-checkbox-label:before {
  font-family: "iconfont" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  content: '\e61c';
}

.k-checkbox:checked + .k-checkbox-label:active:after, .k-checkbox + .k-checkbox-label:active:after, .k-checkbox:focus + .k-checkbox-label:after {
  box-shadow: none;
}

.k-checkbox:checked + .k-checkbox-label:before {
  background-color: white;
  border-color: $cBorder;
  color: #00AAE8;
  font-weight: bold;
  line-height: 12px;
}

.k-checkbox-label:active:before {
  border-color: $cBorder;
}

.k-checkbox-label:hover:before, .k-checkbox:checked + .k-checkbox-label:hover:before, .k-checkbox-label:before {
  border-color: $cBorder;
}

.k-checkbox:focus + .k-checkbox-label:before {
  border-color: $cBorder;
}

.k-checkbox + .k-checkbox-label:after {
  top: -12px;
  left: -35px;
  width: 80px;
  height: 36px;
}

label {
  margin-bottom: 15px;
}

ul.k-list.k-reset {
  height: inherit;
}

//关于解决输入框背景颜色
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important;
}

//隐藏IE浏览器输入框"X"和"显示密码"按钮
::-ms-clear {
  display: none;
}

::-ms-reveal {
  display: none;
}

//IE、FF浏览器a标签选中时会出现虚线
a:focus{
  outline: none;
}